#coding:utf-8
'''
该文件只留下构建app对象

'''
from ihome import create_app, db
from flask_script import Manager
#todo 迁移
from flask_migrate import Migrate, MigrateCommand


app = create_app('develop')
manager = Manager(app)

#todo 迁移
Migrate(app,db)
manager.add_command('db',MigrateCommand)

# @app.route("/")
# def index():
#     return 'hello world'

if __name__ == '__main__':
    print(app.url_map)
    manager.run()

